package demo;

import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;


public class HelloWorld {
	public static void main(String[] args) throws Exception {
		FileOutputStream fos = new FileOutputStream("hello.txt");
		fos.write("大家好".getBytes(StandardCharsets.UTF_8));
		System.out.println("写出完毕");
		fos.close();
		
	}
}

